import request from'@/utils/request.js'
//运动会分页查询
export const sportsPageService = (getSportsProjectPageModel) => {
    return request.post('/sportsProject/getPage', getSportsProjectPageModel)
}

//学期下拉表
export const getSelectListService = () => {
    return request.post('/sportsProject/getYearSelectList')
}

//根据ID获取项目信息
export const getProjetcInfo = (getInfoModel) => {
    return request.post('/sportsProject/getInfoByID',getInfoModel)
}

//根据ID删除项目信息
export const deleteProjectService=(deleteInfoMode)=>{
    return request.post('/sportsProject/adm/deleteInfoByID',deleteInfoMode)
}

//根据项目ID修改项目信息
export const updateProjectService=(updateInfoModel)=>{
    return request.post('/sportsProject/adm/updateInfoByID',updateInfoModel)
}
//导出excel
export const exportPageService=(model)=>{
    return request({
        responseType: 'blob', // 重点，responseType设置为 blob
        url:'/sportsProject/export',
        method: 'post',
        data:model
    });
}